package com.lc.afbx.conn;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/6/14.
 */
@HttpInlet(Conn.INLET_API_FEEDBACK_ADD)
public class GetApiFeedbackAdd extends BaseAsyGet<GetApiFeedbackAdd.Info> {
    public String userid, content;

    public GetApiFeedbackAdd(AsyCallBack<GetApiFeedbackAdd.Info> asyCallBack) {
        super(asyCallBack);
    }
    protected Info parser(JSONObject jsonObject) {

        TOAST = jsonObject.optString("message");
        if (jsonObject.optInt("code") == 200) {

            Info info = new Info();
            info.code = jsonObject.optString("code");
            info.data = jsonObject.optString("data");
            info.message = jsonObject.optString("message");

            return info;
        }

        return null;
    }

    public static class Info {
        public String message, code, data;
    }
}
